package com.hooya.fa.eu.biz.dao.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.hooya.fa.eu.api.bo.stk.ReturnedRecordBO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description 1
 * @Author : Zongz
 * @Copyright Copyright (c) 豪雅集团
 * @Create 2024/2/6
 * @Version 1.0.0
 */
@Mapper
public interface ReturnedMapper {

    /**
     * 根据退货时间和订单优化ids获取退货信息
     *
     * @param startDate
     * @param endDate
     * @param returnedOrderIds
     * @return
     */
    List<ReturnedRecordBO> getReturnedListByDate(@Param("startDate") String startDate,
                                                 @Param("endDate") String endDate,
                                                 @Param("ids") List<String> returnedOrderIds);
	@DS("europe")
	List<ReturnedRecordBO> getReturnedListByDateDaily(@Param("startDate") String startDate,
												 @Param("endDate") String endDate,
												 @Param("ids") List<String> returnedOrderIds);
}
